home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
tcoop10a.zip
/
DOC.ZIP
/
CLASS.DOC
next >
Wrap
Text File
|
1991-11-20
|
8KB
|
198 lines
==========================================================================
CLASS.DOC
version 1.00 11/20/91
class descriptions of TCOOP toolkit
copyright (c) 1991 by James S. Clark
all rights reserved
==========================================================================
This document contains functional descriptions of the following classes:
CLASS NAME BRIEF DESCRIPTION
---------- -----------------
STRING generic string class with string operators
NODE used by List and Tree
LIST creates, sorts, and manipulates node lists
*TREE creates, and manipulates binary trees
GRAPHIC initializes graphics display and command handler
ICON general icon and image manipulation
POINT general point manipulation
RECT general rectangle manipulation (uses Point)
MOUSE Microsoft compatible mouse interface
*KEYBRD IBM BIOS keyboard interface
*EVENT device driven event processor
SOUND background sound effect and music generator
PLAY ASCII music encoding program
EFFECT sound effects library and wave generator
WINDOW text window system
MENU pull-down menus
MENUBAR menu bar class
CONTROL control classes: checkbox, field, button
*ASYNC Buffered serial communications class
==========================================================================
STRING CATEGORY
Class: String
The String Class provides a simpler way of manipulating character arrays
than is provided by C. This includes the ability to use the + and <<
operators to concatenate strings. Over 20 methods provide control of
conversion from character pointer to string and back again. The String
Class forms the basis for the C++ string operations, but does not require
any other classes to function, nor do any other of the classes rely upon
it.
--------------------------------------------------------------------------
LIST CATEGORY
Class: Node
The Node Class is the base class for the creation of lists. A node is
basically two pointers, one forward, and one backward (or left and right
in trees). The Node Class is used by the List Class which manages the
nodes. Any class derived from the Node Class can be manipulated by
objects in the List Class or classes derived from the List Class.
Class: List
The List Class contains methods for operating on lists of Nodes. This
includes list traversal: forward and backward, inserting and deleting
nodes from the list, and comparison testing for sorting and inserting.
The List Class can be used anywhere a double or single linked list
is required.
Class: Tree (unfinished)
The Tree Class utilizes the Node class to build binary tree data structures.
Methods are provided for insertion and deletion, as well as comparison and
sorting of the tree. The Tree can provide more efficent search and
retrieval as compared to the list, depending on the situation.
--------------------------------------------------------------------------
GRAPHICS CATEGORY
Class: Graphic
The Graphic Class provides the general interface to the BGI graphics
routines. The Graphic Class provides a more consistant interface than
the BGI driver. When a graphics application is ported into another
version of C++ like Zortech C++, the Graphic Class simplifies the
process by providing a common interface. Only the Graphic Class will
need to be rewritten. The rest of the graphics code remains the same.
Class: Icon
The Icon Class provides a simple way to deal with large numbers of BGI
images. Icons can be draw on the screen and read directly from the
display screen or loaded and saved in disk files. There are routines
for creating and drawing masked icons too.
Class: Point
The Point Class has methods for working with coordinate data. Methods
are included for creating and offsetting points. The operators + and
= can be used to add and copy points.
Class: Rectangle
The Rect Class has methods for creating, offsetting, insetting, and
copying rectangles. The + and = operators provide means for shifting
and copying rectangles.
--------------------------------------------------------------------------
EVENT CATEGORY
Class: Event (unfinished)
The Event Class provides a means for buffering user input from the
keyboard, mouse, and other input devices. Methods are provided for
placing new events in the event queue, and for testing and removing
events in the queue.
Class: Mouse
The Mouse Class provides a consistent interface to the Microsoft
mouse driver. Methods are provided for initialization and scaling,
button and position testing. More than 18 methods including the abilty
to hook into the mouse interrupt.
Class: KeyBrd (unfinished)
The KeyBrd Class captures key hits and passes them into the event queue.
This includes keyboard status bits and the keyboard character and
scancode value.
--------------------------------------------------------------------------
WINDOW CATEGORY
Class: Window
The Window Class is used to create text windows. Methods are provided
to open and close windows. A special textbox() method allows you to
print colored text in subwindows on the screen.
Class: Menu
The Menu Class creates standard pop-up menus, calling upon the Window
Class to assign a window area on the text screen. User selection returns
a number representing the menu item position. The menu is defined by a
simple menu format string.
Class: MenuBar
The MenuBar Class is derived from the Menu Class and creates a horizontal
MenuBar instead of a pop-up menu. It's methods are inherited from the
Menu Class.
Class: Control
The Control Class allows the creation of several types of controllers that
can be placed on the text screen. The most common types are the CheckBox,
the Button, and the text Field.
--------------------------------------------------------------------------
SOUND CATEGORY
Class: Sound
The Sound Class creates a backgound sound effects and music system, that
will allow music to be produced on the built-in IBM-PC speaker as a
background process while the program continues to run. New tones are
submitted to a sound buffer as a series of frequency and duration
values. *Note* Because the Sound Class creates an interrupt service
routine, only ONE instance of a Sound object should be present in memory
at given time! The same is true for the Play and Effect Class, because
they are derived from the Sound Class.
Class: Play
The Play Class uses the background Sound routines to produce music. The
music is entered in strings using the text music format common to
Microsoft BASICA and ASCII music notation. The Play Class tremendously
simplifies the use of the Sound Class because it creates the sound system
automatically.
Class: Effect
The Effect Class is a simple sound effects generator that uses the Sound
Class as the basis for operation. The Effects Class is a small library
of sound effects commonly found in computer games. The Effect Class is
derived from the Play Class.
--------------------------------------------------------------------------
COMMUNICATIONS CATEGORY
Class: Async (unfinished)
The Async Class provides buffered communications with the serial ports.
--------------------------------------------------------------------------
CLASS.DOC Copyright (c) 1991 by James S. Clark
==========================================================================